package com.slz3.business.module.wmsManagement.wmsWarehouseManage.domain;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum WareTypeEnum {

    KU_QU("wms_area", "库区"),
    CANG_KU("wms_house", "仓库");
    private String type;
    private String name;

    /**
     * 是否是仓库
     * @return boolean
     */
    public static boolean isWmsHouse(WmsWarehouseManage house){
        return CANG_KU.equals(house.getSerWmsType());
    }

    /**
     * 是否是库区
     * @return boolean
     */
    public static boolean isWmsArea(WmsWarehouseManage house){
        return KU_QU.equals(house.getSerWmsType());
    }
}
